import type { IFormItem } from '@/components/NFormBuilder/types'
import type { CreateFormItemsOptions } from '@/types/fcform'
import { ScConstants } from '@/components/NFormBuilder/unit/ScConstants'
export const createFormItems = (options: CreateFormItemsOptions): IFormItem[] => {
  const sc = new ScConstants(24)
  return [
    sc.radio('配置类型', 'systemFlag', {
      options: options.optionsState.dictTypeList.map((el) => {
        return {
          label: el.label,
          value: el.itemValue,
        }
      }),
    }),
    sc.input('类型', 'dictType'),
    sc.input('描述', 'description'),
    sc.input('备注', 'remarks'),
  ]
}
